package com.manage.server.controller.admin;

import com.manage.dto.VwUserRoleDetailsDTO;
import com.manage.result.PageResult;
import com.manage.server.service.VwUserRoleDetailsService;
import com.manage.vo.VwUserRoleDetailsVO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import com.manage.result.Result;

@RestController
@RequestMapping("vwUserRoleDetails")
public class VwUserRoleDetailsController {

    @Autowired
    private VwUserRoleDetailsService vwUserRoleDetailsService;

    /**
     * 用户角色关联明细分页查询
     * @param vwUserRoleDetailsDTO 查询条件（包含分页参数和过滤条件）
     * @return 分页数据结果
     */
    @PostMapping("/page")
    public PageResult<VwUserRoleDetailsVO> findVwUserRoleDetails(
            @RequestBody VwUserRoleDetailsDTO vwUserRoleDetailsDTO) {
        return vwUserRoleDetailsService.findVwUserRoleDetailsByPage(vwUserRoleDetailsDTO);
    }
}